<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>
</head>
<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>展示音频列表</a></li>
		<li><a>音频列表</a></li>
		</ul>
		</div>

		<div class="rightinfo">
		<table class="tablelist">
			<thead>
			<tr>
				<th width="80">ID</th>
				<th width="150">名称</th>
				<th width="500">简介</th>
				<th width="100">标签</th>
				<th>操作</th>
				</tr>
				</thead>
				<tbody>
					<foreach name="data" item="vo">
					    <tr>
							<td>{$vo.id}</td>
							<td>{$vo.name}</td>
							<td>
								<div style="width:500px;white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">{$vo.message}</div>
							</td>
							<td>{$vo.articles}</td>
							<td>
								<a style="color:#50A8E6;" href="{:U('/Home/Mockaudio/mockedit',array('id'=>$vo['id']))}">修改</a>&nbsp;
								<a style="color:#50A8E6;" href="javascript:;" id="{$vo.id}" onclick="deleteid(this);">删除</a>
								&nbsp;
								<a style="color:#50A8E6;" href="{:U('/Home/Mockaudio/mockaudiolist',array('id'=>$vo['id']))}">查看音频</a>
								<a style="color:#50A8E6;" href="{:U('/Home/Mockaudio/mockaudioadd',array('id'=>$vo['id']))}">新增音频</a>
							</td>
						</tr>
					</foreach>
				</tbody>
		</table>
		<div class="pages"><br />
			<div align="right">{$page}</div>
		</div>

<script type="text/javascript">
	function deleteid(obj){
	    var mymessage=confirm("删除不可恢复 确认要删除吗");  
	    if(mymessage==true)  
	    {  
	        var id = obj.id;
	        window.location.href = '/Home/Mockaudio/delmedia?id='+id;
	    }  
	}
</script>
</body>

</html>
